#if !defined(AFX_CONFIGTABLEUNITS_H__9C685F6F_8C5E_4BB2_99AA_6B168B68ECB3__INCLUDED_)
#define AFX_CONFIGTABLEUNITS_H__9C685F6F_8C5E_4BB2_99AA_6B168B68ECB3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ConfigTableUnits.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// ConfigTableUnits dialog
//IDC_UnitsStand_COMBO  pfg
class ConfigTableUnits : public CDialog
{
// Construction
public:
	ConfigTableUnits(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(ConfigTableUnits)
	enum { IDD = IDD_CONFIG_UNITS };
	CComboBox	m_ThickCombo;
	CComboBox	m_T_Combo;
	CComboBox	m_Press1Combo;
	CComboBox	m_PressCombo;
	CComboBox	m_PipeDiaCombo;
	CComboBox	m_M_Combo;
	CComboBox	m_LineDisCombo;
	CComboBox	m_Leng_Combo;
	CComboBox	m_F_Combo;
	CComboBox	m_ADis_Combo;
	CComboBox   m_EModulus_ComBo;
	CString	m_ADis;
	CString	m_F;
	CString	m_Leng;
	CString	m_LineDis;
	CString	m_M;
	CString	m_PipeDia;
	CString	m_Press;
	CString	m_Press1;
	CString	m_Thick;
	CString	m_T;
	CString m_EModulus;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(ConfigTableUnits)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(ConfigTableUnits)
	afx_msg void OnSave();
	virtual void OnCancel();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
private:
	void SaveUnits(CComboBox& CBox,CString Fields);
	void GetUnitsDefault();
	void AddItem();
	_RecordsetPtr m_pRs;
	_RecordsetPtr m_pRsUnitScaleTip;
	BOOL OnInitDialog();
	void ConfigTableUnits::OpenUnitScaleTip();
	void OpenTableUnits();
	void AddItem(CComboBox& CBox,CString Fields,CString& val);


	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CONFIGTABLEUNITS_H__9C685F6F_8C5E_4BB2_99AA_6B168B68ECB3__INCLUDED_)
